package cn.com.nes.site.entity.vo.workOrder;

import cn.com.nes.site.entity.bo.workorder.GetWorkOrderInstallDetailBO;
import cn.com.nes.site.entity.vo.BaseVO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

/**
 * 查询安装工单详情VO
 *
 * @Author: ShenWei
 * @Date: 2024/05/23/9:58
 */
@Data
public class GetWorkOrderInstallDetailVO extends BaseVO {

    /**
     * 安装工单id
     */
    @NotNull(message = "安装工单id")
    private Long workOrderId;

    /**
     * 订单归属人ID
     */
    private String orderCreateUserId;

    private String orderBelongCompanyId;

    /**
     * 是否查询系统单信息
     */
    private Boolean queryPriceMasterInfo = Boolean.FALSE;

    public GetWorkOrderInstallDetailBO convertToBo() {
        GetWorkOrderInstallDetailBO getWorkOrderInstallDetailBo = new GetWorkOrderInstallDetailBO();
        BeanUtils.copyProperties(this, getWorkOrderInstallDetailBo);
        return getWorkOrderInstallDetailBo;
    }
}
